package com.qf.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;


/**
   @author KING
   @ClassName: com.qf.product.entity.Category
   @Description: 该类的功能描述
   @date: 2021/11/10 21:58 
*/
    

/**
    * 商品分类信息
    */
@Data
@TableName(value = "product_category")
public class Category {
    /**
     * 主键
     */
    @TableId(value = "category_id", type = IdType.INPUT)
    private Integer categoryId;

    /**
     * 上级分类的编号：0表示一级分类
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 分类级别：0->1级；1-> 2级
     */
    @TableField(value = "`level`")
    private Integer level;

    /**
     * 商品数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 商品单位
     */
    @TableField(value = "unit")
    private String unit;

    /**
     * 关键字
     */
    @TableField(value = "keywords")
    private String keywords;

    /**
     * 是否显示在导航栏(移动端)：0->不显示；1->显示
     */
    @TableField(value = "nav")
    private Integer nav;

    /**
     * 显示状态：0->不显示；1->显示
     */
    @TableField(value = "is_show")
    private Integer isShow;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 0->删除；1->正常
     */
    @TableField(value = "`status`")
    private Integer status;

    public static final String COL_CATEGORY_ID = "category_id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_NAME = "name";

    public static final String COL_LEVEL = "level";

    public static final String COL_QUANTITY = "quantity";

    public static final String COL_UNIT = "unit";

    public static final String COL_KEYWORDS = "keywords";

    public static final String COL_NAV = "nav";

    public static final String COL_IS_SHOW = "is_show";

    public static final String COL_SORT = "sort";

    public static final String COL_ICON = "icon";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_STATUS = "status";
}